﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace PEPe.Areas.Logado.Controllers
{
    public class AutenticationControllercs : Controller
    {

        public AutenticationControllercs()
        {
            if (HttpContext != null && HttpContext.Session != null)
            {
                if (HttpContext.Session["user"] == null)
                    RedirectToAction("ReturnHome", "Autentication");
            }
            else
            {
                //RedirectToAction("ReturnHome", "Autentication");

                RedirectToRoute("~/");

            }
        }


      

    }
}